<template>
    <el-icon>
        <span :class="classobj"></span>
    </el-icon>
</template>

<script setup>
import { computed } from 'vue';

const props=defineProps({
    icon:{
        type: String,
        default: 'n'
    }
})
const classobj=computed(()=>{
    return {
        iconfont:true,
        [`icon-${props.icon}`]:true
    }
})
</script>

<style lang="scss" scoped>

</style>